﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO;
using BUS;


namespace NGU
{
    public partial class ChiTietTour : System.Web.UI.Page
    {
        protected ListTourDetailDTO tourDet;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["wsID"] == null || Request["tripID"] == null)
            {
                Response.Redirect("/InfoPage.aspx?action=error&type=invalid_path");
            }
            //thieu thong tin ma tour, ngay khoi hanh,...
            string ws = Request["wsid"].ToString();
            string tripID = Request["tripID"].ToString();
            TourBUS tourBus = new TourBUS();
            this.tourDet = tourBus.layThongTinChiTietTour(ws, tripID);
            if (this.tourDet == null)
            {
                Response.Redirect("/InfoPage.aspx?action=error&type=unknown");
            }
        }
    }
}